package OOP.day10.AnimalDemo04;

import OOP.day09.AnimalDemo02.AnimalEat;

public class Chick extends Animal implements AnimalEat {
    //子类构造方法
    public Chick() {
        System.out.println("小鸡出生！");
    }

    public Chick(String name, int age, String color) {
        super(name, age, color);
    }

    //子类方法
    public void layEggs() {
        System.out.println(color + "颜色的"+ age + "岁的小鸡" + name + "正在下蛋！");
    }

    @Override
    public void eat() {
        System.out.println(color + "颜色的"+ age + "岁的小鸡" + name + "正在吃小米！");
    }
}
